<div style="margin-left: 300px">
    <h1>Anketa</h1>
    <form action="<?php echo url_for('anketa/update') ?>" method="post" >
    <?php foreach ($pitanja as $pitanje): ?>
    <label for=<?php echo $pitanje->getTekstPitanja()?>><?php echo $pitanje->getTekstPitanja()?></label>
     <br class="clear">
            <?php foreach($odgovori[$pitanje->getId()] as $id=>$odgovor): ?>
    <br class="nobr">
    <input type="radio" name="odgovori[<?php echo $pitanje->getId()?>]" value="<?php echo $id?>" checked="checked"> <?php echo $odgovor?>
        <br class="clear">
    <?php endforeach; ?>
    <?php endforeach; ?>
        <input type="submit" value="Pošalji" style="margin-left: 70px">
</form>
    </div>